package co.gov.medellin.ssti.sub.model.service.impl;

import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import co.gov.medellin.ssti.sub.model.dao.exception.DAOException;
import co.gov.medellin.ssti.sub.model.dao.impl.ReporteTotalComunaDAOImpl2;
import co.gov.medellin.ssti.sub.model.service.ReporteTotalComunaService;
import co.gov.medellin.ssti.sub.model.vo.CondicionConsultaVO;
import co.gov.medellin.ssti.sub.model.vo.ReportComunaVO;
import co.gov.medellin.ssti.sub.model.vo.ReporteTotalComunaVO;

@Service
// @Transactional
public class ReporteTotalComunaServiceImpl implements ReporteTotalComunaService {
	@Autowired
	ReporteTotalComunaDAOImpl2 reporteTotalComunaDAOImpl2;

	public Collection<ReportComunaVO> findBeneficiosBeneficiariosComuna(
			ReporteTotalComunaVO criteria,
			Collection<CondicionConsultaVO> filtros) throws DAOException {
		try {
			return reporteTotalComunaDAOImpl2
					.findBeneficiosBeneficiariosComuna(criteria, filtros);
		} catch (Exception e) {
			throw new DAOException(e);
		}
	}

	public ReporteTotalComunaVO findFilters(ReporteTotalComunaVO objRtcVO)
			throws DAOException {
		try {
			return reporteTotalComunaDAOImpl2.findFilters(objRtcVO);
		} catch (Exception e) {
			throw new DAOException(e);
		}
	}

}
